﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8"/>
    <title>流程抄送列表</title>
    <script type="text/javascript" src="./Scripts/bootstrap/js/jquery.min.js"></script>
    <script type="text/javascript" src="./Scripts/bootstrap/js/bootstrap.min.js"></script>
    <script src="./Scripts/QueryString.js" type="text/javascript"></script>
    <script src="./Scripts/config.js" type="text/javascript"></script>
     <base target="_self" /> 
    <link href="../DataUser/Style/ccbpm.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" language="javascript" >
        //打开默认窗口
        function WinOpenFull(url) {
            var newWindow = window.open(url, 'x', 'width=' + window.screen.availWidth + ',height=' + window.screen.availHeight + ',scrollbars=yes,resizable=yes,toolbar=false,location=false,center=yes,center: yes;');
            newWindow.focus();
            return;
        }
        //页面启动函数.
        $(function () {

            $.ajax({
                type: 'post',
                async: true,
                url: Handler + "?DoType=CC_Init&m=" + Math.random(),
                dataType: 'html',
                success: function (data) {

                    if (data.indexOf('err@') == 0) {
                        alert(data);
                        return;
                    }

                    //转换.
                    data = JSON.parse(data);
                    var row = "";
                    for (var i = 0; i < data.length; i++) {
                        var batchUrl = "";
                        var url = "";
                        if (plant == "CCFlow") {
                            batchUrl = './WFRpt.aspx?FK_Flow=' + data[i].FK_Flow + '&FK_Node=' + data[i].FK_Node + '&WorkID=' + data[i].WorkID + '&FID=' + data[i].FID;
                            url = '../WF/WorkOpt/CCCheckNote.aspx?WorkID=' + data[i].WorkID + '&FK_Flow=' + data[i].FK_Flow + '&FID=0&FK_Node=' + data[i].FK_Node;
                        } else {
                            batchUrl = './WFRpt.jsp?FK_Flow=' + data[i].FK_Flow + '&FK_Node=' + data[i].FK_Node + '&WorkID=' + data[i].WorkID + '&FID=' + data[i].FID;
                            url = './WorkOpt/CCCheckNote.jsp?WorkID=' + data[i].WorkID + '&FK_Flow=' + data[i].FK_Flow + '&FID=0&FK_Node=' + data[i].FK_Node;
                        }

                        row += "\t\n<tr>";
                        row += "<td>" + i + "</td>";
                        row += "<td>" + data[i].FlowName + "</td>";
                        row += "<td>" + data[i].NodeName + "</td>";
                        row += "<td>" + data[i].Rec + "</td>";
                        //row += "<td><a href='" + batchUrl + "' target=_blank >" + data[i].Title + "</a></td>";
                        row += "<td><a href='#'  onclick='WinOpenFull(\"" + batchUrl + "\")'>" + data[i].Title + "</a></td>";
                        row += "<td>" + data[i].Doc + "</td>";
                        row += "<td>" + data[i].RDT + "</td>";
                        //row += "<td><a href='" + url + "' target=_blank >回复</a></td>";
                        row += "<td><a href='#' onclick='WinOpenFull(\"" + url + "\")' >回复</a></td>";
                        row += "</tr>";
                    }
                    $("#Rows").html(row);
                    return;
                }
            });
        });
    </script>
	</head>
	<body>
        <!--<a href='?Sta=-1'>全部</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href='?Sta=0'>已读</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href='?Sta=1'>未读</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
-->
		<table id="Table1" style=" width:100%;">
			<thead>
				<tr>
                    <th style=" width:38px;" >序号 </th>
                    <th>工作流程 </th>
                    <th>节点 </th>
                    <th>抄送人 </th>
                    <th>标题 </th>
                    <th>内容 </th>
                    <th>日期 </th>
                    <th>操作 </th>

                </tr>
			</thead>

			<tbody id="Rows">
			</tbody>

		</table>
        <div id="Msg"></div>
</body>
</html>
